package com.zzuli.dcxt.service.impl;

import com.zzuli.dcxt.dao.LoginMapper;
import com.zzuli.dcxt.entiy.User;
import com.zzuli.dcxt.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("loginService")
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public User login(User user) {
        User loginUser = loginMapper.login(user);
        return loginUser;
    }
    //遍历所有用户
    @Override
    public List getListUser() {
    List list=loginMapper.getUserList();
    return list;
    }
}
